package com.technology.education.ui.teacher.popularize

import androidx.lifecycle.MutableLiveData
import com.technology.education.data.model.DurationRecordModel
import com.technology.education.network.apiService
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.ext.request
import me.hgj.jetpackmvvm.state.ResultState

class PopularizeViewModel : BaseViewModel() {
    val result=MutableLiveData<ResultState<DurationRecordModel>>()
    override fun getData() {
        super.getData()
        request({
            apiService.billPointListTeacher(
                hashMapOf(
                    "pageNo" to pageIndex,
                    "pageSize" to pageSize,
                    "inOutType" to 1
                )
            )
        },result)
    }
}